<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:119:"/Applications/MAMP/htdocs/2020-08/school_activity_registration/public/../application/admin/view/preject/sendnotice.html";i:1596420793;s:97:"/Applications/MAMP/htdocs/2020-08/school_activity_registration/application/admin/view/layout.html";i:1596425128;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>报名系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <script src="/static/js/jquery.js"></script>
    <link rel="stylesheet" href="/static/css/admin.css?v=1">
</head>
<body>
<!--大盒子-->
<div id="container">
    <!--头部-->
    <header>
        <div id="top-left"></div>
        <div id="top-right">
            <ul>
                <?php if(\think\Request::instance()->session('admin')): ?>
                <li><a href=""><?php echo \think\Request::instance()->session('admin'); ?>,欢迎您</a></li>
                <li><a href="<?php echo url('index/admin'); ?>">管理员</a></li>
                <li><a href="<?php echo url('index/logout'); ?>">退出</a></li>
                <li><a href="<?php echo url('@home'); ?>">主页</a></li>
                <?php else: ?>
                <li><a href=""></a></li>
                <li><a href="<?php echo url('index/admin'); ?>">管理员</a></li>
                <li><a href="<?php echo url('@home'); ?>">主页</a></li>
                <?php endif; ?>

            </ul>

        </div>
    </header>
    <!--主页行-->
    <div id="firstpage"><a href="<?php echo url('index/index'); ?>">主 页</a></div>
    <!--内容-->
    <section>
        <div class="left" id="menupane">
            <h5 class="menu_head">信息发布</h5>
            <div class="menu_body">
                <a href="<?php echo url('preject/sendpreject'); ?>">项目发布</a>
<!--                <a href="<?php echo url('preject/sendnotice'); ?>">公告发布</a>-->
<!--                <a href="<?php echo url('preject/sendquestion'); ?>">问题发布</a>-->
            </div>

            <h5 class="menu_head">信息管理</h5>
            <div class="menu_body">
                <a href="<?php echo url('preject/preject'); ?>">项目管理</a>
<!--                <a href="<?php echo url('preject/notice'); ?>">公告管理</a>-->
<!--                <a href="<?php echo url('preject/question'); ?>">问题管理</a>-->
            </div>

            <?php if(\think\Request::instance()->session('apartment')==""): ?>
            <h5 class="menu_head">用户管理</h5>
            <div class="menu_body">
                <a href="<?php echo url('user/student'); ?>">学生管理</a>
                <a href="<?php echo url('user/teacher'); ?>">教工管理</a>
                <a href="<?php echo url('user/outuser'); ?>">校外管理</a>
            </div>

            <h5 class="menu_head">学院信息</h5>
            <div class="menu_body">
                <a href="<?php echo url('school/apartment'); ?>">部门管理</a>
                <a href="<?php echo url('school/major'); ?>">专业管理</a>
                <a href="<?php echo url('school/classi'); ?>">班级管理</a>

            </div>
            <?php endif; ?>

            <h5 class="menu_head">已报项目</h5>
            <div  class="menu_body">
                <a href="<?php echo url('already/person'); ?>">个人报名</a>
                <a href="<?php echo url('already/team'); ?>">团队报名</a>
            </div>

        </div>
         <!--右侧-->
        <div id="right">
            <?php if($notice): ?>
<form method="post" action="updatenotice" enctype="multipart/form-data">
    <div id="preject-info">
        <input type="hidden" name="id" value="<?php echo $notice['id']; ?>">
        <table>
            <input type="hidden" name="id" value="<?php echo $notice['id']; ?>">
            <tr><th>标题</th><th><input type="text" name="title" value="<?php echo $notice['title']; ?>" required></th></tr>
            <tr><th></th><th><input type="submit" value="确认更新"></th></tr>
        </table>



    </div>
    <script id="contnet" name="content" style="width:99%;height: 500px" type="text/plain"><?php echo $notice['content']; ?></script>
    </form>
    <?php else: ?>
    <form method="post" enctype="multipart/form-data">
        <div id="preject-info">
        <table>
        <tr><th>标题</th><th><input type="text" name="title"  required></th></tr>
    <tr><th></th><th><input type="submit" value="确认发布"></th></tr>
    </table>
        </div>
        <script id="contnet" name="content" style="width:99%;height: 500px" type="text/plain"></script>
</form>
<?php endif; ?>

        </div>
    </section>
</div>

</body>
</html>
<script>
    $(document).ready(function(){
        $("#menupane h5.menu_head").click(function(){
            $(this).addClass("current").next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("fast");
            $(this).siblings().removeClass("current");
        });

    });
</script>

<script type="text/javascript" src="/static/js/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="/static/js/ueditor/ueditor.all.min.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
    var ue = UE.getEditor('contnet');
</script>